package com.citydo.webrtcspringboot.websocket.stream;

import javax.websocket.Session;

public class ConnectStateWeb extends ConnectState{
    private String userName = null;

    public ConnectStateWeb(String connectionId, Session session, String identity, Boolean isConnected){
        super(connectionId,session,identity,isConnected);
    }
    public ConnectStateWeb(String connectionId,Session session,String identity){
        super(connectionId,session,identity);
    }
    public ConnectStateWeb(ConnectState connectState){
        super(connectState.getConnectionId(),connectState.getSession(),
                connectState.getIdentity(),connectState.getConnectionState(),
                connectState.getUserGrade());
    }
    private String mateConnectionId = null;
    public void setMateConnectionId(String mateConnectionId){
        this.mateConnectionId = mateConnectionId;
    }
    public String getMateConnectionId(){
        return mateConnectionId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}